home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / source / case_lowers.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-15  |  155 b   |  13 lines

  1. #include "case.h"
  2.  
  3. void case_lowers(s)
  4. char *s;
  5. {
  6.   unsigned char x;
  7.   while (x = *s) {
  8.     x -= 'A';
  9.     if (x <= 'Z' - 'A') *s = x + 'a';
  10.     ++s;
  11.   }
  12. }
  13.